PackageStore.GetPackageReader Method (PackageItemIdentifier)

Returns a PackageReader that can read files from a package in this store.

Parent Type: PackageStore

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public abstract PackageReader GetPackageReader (
PackageItemIdentifier packageId

)

Parameters

packageId

The identifier of the package to be read.

Return Value

A PackageReader that can read files from the requested package.

Exceptions
Exception type Condition
LearningStoreItemNotFoundException

Thrown if packageId does not represent a package in the store.

Remarks

It is recommended that derived classes of PackageStore also implement a derived class of PackageReader that is capable of reading files on behalf of the subclassed PackageStore.